<?php
$pool=new swoole\Process\Pool(2,SWOOLE_IPC_SOCKET);
$pool->on('workerstart',function($pool,$workerId){
        echo $workerId.'启动了';
});

//事件监听
$pool->on('message',function($pool,$message){
     var_dump($message);
     $pool->write('你好呀');



});

$pool->listen('0.0.0.0',9508);

$pool->start();